package com.example.spring.multi.module.logic.controller.other;

import com.example.spring.multi.basic.tools.excel.ExcelParseUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: knowledge-pooling
 * @ClassName ExcelDealController
 * @description:
 * @author: tomato
 * @create: 2023-07-25 08:59
 * @Version 1.0
 **/
@RestController
public class ExcelDealController {
    @GetMapping("/download/{id}")
    public void  downloadTemplate(@PathVariable("id") String id) {
        // 创建新的Excel工作簿，填充数据，返回
        ExcelParseUtil.buildSignInDateModels(id);
    }

    @PostMapping("/download1")
    public void  downloadTemplate1() {
        // 创建新的Excel工作簿，填充数据，返回
        ExcelParseUtil.buildSignInDateModels1();
    }
}
